// 按需引入 Element组件
import {
    Button,
    Checkbox,
    CheckboxGroup,
    DatePicker,
    Dialog,
    Form,
    FormItem,
    Input,
    MenuItem,
    Radio,
    RadioButton,
    RadioGroup,
    Select,
    TabPane,
    Tabs,
    Menu,
    Submenu,
    MenuItemGroup,
    Table,
    TableColumn,
    Tag,
    Tree,
    Pagination,
    Popover,
    Option,
    InputNumber,
    Progress, Switch
} from "element-ui";

const elementsUI = [
  Tabs,
  TabPane,
  Dialog,
  FormItem,
  Form,
  DatePicker,
  Button,
  CheckboxGroup,
  Checkbox,
  Input,
  Select,
  RadioGroup,
  RadioButton,
  Menu,
  MenuItem,
  Submenu,
  MenuItemGroup,
  Table,
  TableColumn,
  Tag,
  Tree,
  Pagination,
  Popover,
  Option,
    Radio,
    InputNumber,
    Progress,
    Switch
]

export default {
    install (Vue) {
        elementsUI.forEach(key => {
            Vue.use(key)
        })
    }
}
